#!/bin/bash

# Where the Django project is.
CELERYBEAT_CHDIR="/opt/tcloud/cvirt"

# %n will be replaced with the nodename.
CELERYBEAT_LOG_FILE="/var/log/schedule/schedule.log"
CELERYBEAT_PID_FILE="/var/run/schedule/schedule.pid"

# Workers should run as an unprivileged user.
CELERYBEAT_USER="root"
CELERYBEAT_GROUP="root"


CELERY_CREATE_DIRS=1

CELERYBEAT_LOG_LEVEL=debug


# Name of the projects settings module.
export DJANGO_SETTINGS_MODULE="cvirt.settings"

# Path to celerybeat
CELERYBEAT="python $CELERYBEAT_CHDIR/manage.pyc celerybeat"

# Extra arguments to celerybeat
CELERYBEAT_OPTS="--schedule=/var/run/celerybeat-schedule -S djcelery.schedulers.DatabaseScheduler"